package ifpe.datasource;

import javax.sql.DataSource;

/**
 *
 * @author Sostenes
 */
public class DataSourceFactory {

    private static DataSourceFactory instance;

    public static synchronized DataSourceFactory getInstance() {
        if (instance == null) {
            instance = new DataSourceFactory();
        }
        return instance;
    }

    public DataSource getDataSource() {
        return ThreadLocalDataSource.getInstance();
    }
}
